home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2000 July / macformat-092.iso / MacFormat 92 CD / Shareware Plus / Utilities / FolderSynchronizer 1.8.9 / FoldersSynchronizer / FoldersSynchronizer.9 / AllScripts_13_PausaFrame.ls < prev    next >
Encoding:
Text File  |  2000-05-10  |  537 b   |  25 lines

  1. on exitFrame
  2.   global gTimerAll
  3.   set the idleHandlerPeriod to 60 * 10
  4.   cursor(-1)
  5.   set the keyDownScript to EMPTY
  6.   set the mouseDownScript to EMPTY
  7.   set the timeoutScript to EMPTY
  8.   pause()
  9. end
  10.  
  11. on idle
  12.   global gTimerAll, gTimeIntervallo, gDoAndQuit, gJustLaunched, gSourceFolder, gDestFolder
  13.   if gTimerAll then
  14.     DoTimerScript()
  15.   else
  16.     if gDoAndQuit and gJustLaunched then
  17.       if (gSourceFolder = EMPTY) or (gDestFolder = EMPTY) then
  18.         quit()
  19.       end if
  20.       DoSynchronize()
  21.       quit()
  22.     end if
  23.   end if
  24. end
  25.